<?php
/* @var $this SiteController */
/* @var $model LostPasswordForm */
/* @var $form TbActiveForm */

$this->pageTitle = '忘记密码';
?>

<div class="sign sign-lost-password">
	<h1>忘记密码</h1>

	<?php $this->widget('bootstrap.widgets.TbAlert'); ?>

	<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
		'id' => 'lost-password-form',
		'enableClientValidation' => true,
		'clientOptions' => array(
			'validateOnSubmit' => true,
		),
	)); ?>

	<?php echo $form->textFieldRow($model, 'login', array('class' => 'input-block-level')); ?>

	<?php if (CCaptcha::checkRequirements()): ?>
		<?php echo $form->captchaRow($model, 'verifyCode', array('class' => 'span2')); ?>
	<?php endif; ?>

	<div class="text-right">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
		'buttonType' => 'submit',
		'type' => 'primary',
		'label' => '确定',
	)); ?>
	</div>

	<?php $this->endWidget(); ?>
	<p class="sign-nav"><?php echo Chtml::link('登录', array('login')) ?>
	<br>
		<?php echo Chtml::link('&larr;回到前台', Yii::app()->getBaseUrl()); ?>
	</p>
</div>